﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="lib/html5.js"></script>
    <script type="text/javascript" src="lib/respond.min.js"></script>
    <script type="text/javascript" src="lib/PIE_IE678.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="lib/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <!-- 权限验证 -->
    <script type="text/javascript" src="static/WebApi.js"></script>
    <title>审核详情</title>
</head>
<body>
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 审核列表 <span class="c-gray en">&gt;</span> 审核列表详情 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a></nav>
    <div class="page-container">
        <div class="cl pd-5 bg-1 bk-gray mt-20">
            <!--<span class="l">
                <input type="text" name="" id="number_Search" placeholder="请输入报告编号查询" style="width:250px" class="input-text">
                <button name="" id="" class="btn btn-success" type="button" onclick="search()"><i class="Hui-iconfont">&#xe665;</i> 查询</button>
            </span>-->
            <span class="r">当前数据：<strong id="count">&nbsp;</strong> 条，共<strong id="pagecount"></strong>页</span>
        </div>
        <div class="mt-20">
            <table class="table table-border table-bordered table-bg table-hover table-sort">
                <thead>
                    <tr class="text-c">
                        <th width="20">项目号</th>
                        <th width="20">审核日期</th>
                        <th width="20">审核类型</th>
                        <th width="20">审核状态</th>
                        <th width="20">审核人</th>
                        <th width="20">审核内容</th>
                    </tr>
                </thead>
                <tbody id="mybody"></tbody>
                <tfoot id="myfoot">

                </tfoot>
            </table>
        </div>
    </div>
    <!--模态框-->
    <script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
    <!--<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>-->
    <!-- <script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>-->  <!--分页脚本，暂时注释-->
    <script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
    <script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
    <!--扩展js脚本-->
    <script type="text/javascript" src="static/Common.js"></script>
    <script type="text/javascript">

        var uri = document.location.search;//接收页面传值
        var i = uri.lastIndexOf("?") + 1;//获取问号前面的值
        var id = uri.substr(i);//截取问号前面的值

        $(function () {

            Show(id,1,10); //根据项目号显示审核信息列表

        });

        //根据项目号显示审核信息列表
        function Show(search, PageIndex, PageSize)
        {
            $.ajax({
                url: ApiUrl + 'api/trackRecord/TrialInfo',
                type: 'post',
                data: { search:search,PageIndex:PageIndex,PageSize:PageSize},
                success: function (data) {
                    $("#mybody").empty();
                    $("#myfoot").empty();
                    $("#count").text(data.TotalSize);
                    $("#pagecount").text(data.PageCount);
                    var html = Array();
                    $(data.Result).each(function () {
                        html.push('<tr class="text-c">');
                        html.push('<td>' + this.T_ReportNumber + '</td>');
                        html.push('<td>' + this.T_date+ '</td>');
                        html.push('<td>' + this.T_TypeText + '</td>');
                        html.push('<td>' + this.T_State + '</td>');
                        html.push('<td>' + this.T_ToexaminePersonText + '</td>');//T_FirstIdea
                        if (this.T_FirstIdea == null)
                        {
                            html.push('<td></td>');
                        }
                        else
                        {
                            html.push('<td>' + this.T_FirstIdea + '</td>');
                        }
                        html.push('</tr>');
                    });
                    $("#mybody").append(html.join(""));

                    var page = Array();
                    page.push('<tr><td style="text-align:right;" colspan="10">');
                    if (PageIndex > 1 && data.PageCount > 0) {
                        page.push('<input type="button"  class="btn btn-primary radius" onclick="Show(\'' + search + '\',' + (PageIndex - 1) + ',' + PageSize + ')" value="上一页" />');
                    }
                    page.push('<lable  style="font-size:16px" ">第' + PageIndex + '页</label>');
                    if (PageIndex < data.PageCount && data.PageCount > 0) {
                        page.push('<input type="button"  class="btn btn-primary radius" onclick="Show(\'' + search + '\',' + (PageIndex + 1) + ',' + PageSize + ')" value="下一页" />');
                    }

                    page.push('</tr>');
                    var d1 = page.join("");
                    $("#myfoot").append(d1);


                }
            });
        }
       
    </script>
</body>
</html>
